
package deleteroleinhierarchyservice;

import java.io.*;
import java.sql.*;

import javax.xml.namespace.QName;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;


public class DeleteRoleInHierarchyImpl implements DeleteRoleInHierarchyIF {

	
	/* (non-Javadoc)
	 * @see deleteroleinhierarchyservice.DeleteRoleInHierarchyIF#update(java.lang.String)
	 */
	public boolean deleteRoleInHierarchy(String roleName)
	{
		System.out.println("RBAC administrator has deleted the target role from role hierarchy!");
		return hookDeleteRoleInHierarchy(roleName);
	}
	
	/**
	 * Programmers can use this hook method to delete the target role
	 * @param roleName	Name of the target role.
	 * @return			true if target role has been deleted.
	 */
	private boolean hookDeleteRoleInHierarchy(String roleName){
		return true;
	}
}
